package com.finger.hospservice.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.finger.modelservice.vo.student.SevenClass;

import java.util.List;

public class ExcelStudentListener extends AnalysisEventListener<SevenClass> {

    private List<SevenClass> stuList ;

   public ExcelStudentListener(List<SevenClass> list){
       this.stuList = list ;
   }
    @Override
    public void invoke(SevenClass sevenClass, AnalysisContext analysisContext) {

        stuList.add(sevenClass);

    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }

}
